package core;

import java.awt.Polygon;
import java.awt.geom.Point2D;
import java.util.ArrayList;

import javax.swing.ImageIcon;

 /**
 * @author Arno de Jager
 * @version 1.1
 * @since 2011-04-11
 */
public class Map {
	private ArrayList<ArrayList<Point2D.Double>> routes;
	private ImageIcon background = new ImageIcon("images/background.gif");
	private Base base;
	private ArrayList<Polygon> polygonArray = new ArrayList<Polygon>();
	private int ID;
	/**
	 * Breedte van de weg
	 */
	public static final int wayWidth = 35;

	/**
	 * @param base de basis
	 * @param routes de route
	 * @param ID het id van de map
	 */
	/* /// Constructor //////////////////////////////////////// */
	public Map(Base base, ArrayList<ArrayList<Point2D.Double>> routes, int ID) {
		this.base = base;
		this.routes = routes;
		this.ID = ID;
	}

	/* /// getID //////////////////////////////////////// */
	public int getID() {
		return ID;
	}

	/* /// getRoutes //////////////////////////////////////// */
	public ArrayList<ArrayList<Point2D.Double>> getRoutes() {
		return routes;
	}

	/* /// getBackGround //////////////////////////////////////// */
	public ImageIcon getBackground() {
		return background;
	}

	/* /// getBase //////////////////////////////////////// */
	public Base getBase() {
		return base;
	}

	/* /// getPolygonArray //////////////////////////////////////// */
	public ArrayList<Polygon> getPolygonArray() {
		return polygonArray;
	}

}
